package com.kate.mall.bff.wx.feign;

import com.kate.mall.bff.wx.dto.UserDTO;
import com.kate.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/8/17 20:05
 */
@FeignClient(value = "member-center")
public interface MemberFeignClient {

    @GetMapping("user/member/list")
    R queryMemeberByOpenId(@RequestParam("username") String username);
    @PutMapping("user/member/update")
    R updateUserInfo(@RequestBody UserDTO userDTO);
    @PostMapping("user/member/update")
    R saveUserInfo(UserDTO userDTO);
}
